

import {
    request
} from "./request";
import qs from "qs";

// 用户使用剩余次数申请加号和亲情服务
export function userAddOrder(obj) {
    return request({
        url: "user/userAddOrder",
        method: "post",
        data: obj,
        headers: { 'Content-Type': 'multipart/form-data' }
    });
}

// 开通购买测试
export function payTest(obj) {
    return request({
        url: "user/payTest",
        method: "post",
        data: obj,
        headers: { 'Content-Type': 'multipart/form-data' }
    });
}
// 加入家庭
export function addUserByFamilyCode(obj) {
    return request({
        url: "user/addUserByFamilyCode",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 开通家庭医生
export function addUserOrder(obj) {
    return request({
        url: "user/addUserOrder",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 创建家庭
export function creatCode(obj) {
    return request({
        url: "user/creatCode",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 获取家庭次数
export function listFamilyNum(obj) {
    return request({
        url: "user/listFamilyNum",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 获取使用详情
export function getUserOrderDetail(obj) {
    return request({
        url: "user/getUserOrderDetail",
        method: "post",
        data: qs.stringify(obj)
    });
}
// 驳回后再次上传
export function unApplyService(obj) {
    return request({
        url: "user/unApplyService",
        method: "post",
        data: qs.stringify(obj)
    });
}
